﻿using NPoco;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YYBlog.Core.Entity;

namespace YYBlog.Core.Projection.Account
{
    public class GetUserDetails : IViewProjection<string, Author>
    {
        private readonly Database _db;

        public GetUserDetails(Database db)
        {
            _db = db;
        }

        public Author Project(string input)
        {
            return _db.FirstOrDefault<Author>("");
        }
    }
}
